/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.knife.blog.service;

import java.util.Timer;

/**
 *
 * @author Administrator
 */
public class PublishService {
        public static void main(String[] args) {
        // TODO code application logic here
        int realtime = 5;//分钟
        realtime = realtime*1000*60;
        Timer timer = new Timer();
        timer.schedule(new PublishTask(),0,realtime);
    }
}
